package com.myyun.yun.mapper;

import com.myyun.yun.domain.User;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Mapping;

import java.util.List;

/**
 * @author CC小天才
 * @website www.flyskill.cn
 * @date 2021/9/11 16:25
 **/

public interface UserMapper {
    int save(User user);

    User findByPhone(@Param("phone") String phone);


    User findByPhoneAndPwd(@Param("phone") String phone, @Param("password") String password);

    User findByUserId(@Param("user_id") Integer userId);
}
